package cn.edu.sju;

import java.util.ArrayList;

public class test1
{
    
    public static void main(String[] args)
    {
        ArrayList list=new ArrayList();
        list.add("张三丰");
        list.add("郭靖");
        list.add("杨过");
        System.out.println(list.contains("李莫愁"));
        list.remove(0);
        System.out.println("--------------------------------");
        System.out.println(list.indexOf("小龙女"));
        list.clear();
        System.out.println("--------------------------------");
           for(Object obj:list) {
               String name=(String)obj;
               System.out.println(name);
           }
       System.out.println(list.isEmpty());
    }
    
}
